package com.an.protobuf;

import com.an.protobuf.MyMessage.DataType;
import com.an.protobuf.Student.Builder;

import io.netty.util.internal.logging.InternalLoggerFactory;

public class Go {

	public static void main(String[] args) {
		Builder builder = Student.newBuilder();
		Student student = builder.setId(123).setName("小红").build();
		System.out.println(student);
		com.an.protobuf.MyMessage.Builder builder2 = MyMessage.newBuilder();
		builder2.setDataType(DataType.WorkerType);
		builder2.setStudent(student);
		MyMessage myMessage = builder2.build();
		System.out.println(myMessage);
		
		System.out.println("------------");
		System.out.println(InternalLoggerFactory.class.getName());
	}
}
